This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using UnityEngine; | |
| public class CardRigidbody : MonoBehaviour | |
| { | |
| public float rotationAmount = 10f; | |
| public float maxRotationAngle = 360f; | |
| public float springStiffness = 100f; | |
| public float springDamping = 10f; | |
| public float mass = 3f; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class InstancedDrawer : MonoBehaviour | |
| { | |
| public Mesh mesh; | |
| public Material material; | |
| public int count = 50; | |
| public float minScale = 1; | |
| public float maxScale = 1; | |
| private Matrix4x4[][] matrices; | |
| [Space] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using UnityEngine; | |
| public class VelocityUtil | |
| { | |
| private readonly Transform _transform; | |
| private Vector3 lastPosition; | |
| public Vector3 Motion { get; private set; } | |
| public float speed; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System; | |
| using System.Collections; | |
| using UnityEngine; | |
| using UnityEngine.Serialization; | |
| public class Ball : MonoBehaviour | |
| { | |
| private bool isActive; | |
| [SerializeField] private Vector3 gravity = new Vector3(0, -9.81f, 0); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Date: 05/10/2016 | |
| // No license, do whatever you want with this script | |
| using UnityEngine; | |
| using UnityEngine.Serialization; | |
| public class TubeRenderer : MonoBehaviour | |
| { | |
| [SerializeField] Vector3[] _positions; | |
| [SerializeField] int _sides; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using UnityEngine; | |
| using System.Collections; | |
| public class TargetController : Singleton<TargetController> | |
| { | |
| public GameObject target; | |
| public bool isMouseDrag; | |
| public Vector3 screenPosition; | |
| public float speed = 10; | |
| public Vector3 offset; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public Task FetchDataAsync() | |
| { | |
| Debug.Log("Fetching data..."); | |
| Task fetchTask = Firebase.RemoteConfig.FirebaseRemoteConfig.FetchAsync( | |
| TimeSpan.Zero); | |
| return fetchTask.ContinueWithOnMainThread(FetchComplete); | |
| } | |
| void FetchComplete(Task fetchTask) | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using Firebase.Extensions; | |
| using System; | |
| using System.Collections; | |
| using System.Threading.Tasks; | |
| using UnityEngine; | |
| using Firebase.RemoteConfig; | |
| using UnityEngine.SceneManagement; | |
| using Firebase; | |
| public class FirebaseRemoteHandler : MonoBehaviour | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System; | |
| using System.Collections.Generic; | |
| public class PoolSystem<T> where T : UnityEngine.Object | |
| { | |
| private Stack<T> _stack; | |
| public PoolSystem(IEnumerable<T> objects) | |
| { | |
| _stack = new Stack<T>(); | |
| foreach (var item in objects) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class EfEntityRepositoryBase<TEntity, TContext> : IEntityRepository<TEntity> where TContext : DbContext, new() | |
| where TEntity : class, new() | |
| { | |
| public virtual void Add(TEntity entity) | |
| { | |
| using (TContext context = new TContext()) | |
| { | |
| context.Entry(entity).State = EntityState.Added; | |
| context.SaveChanges();//ASYNC | 
NewerOlder