public void RemoveGame() { if (_game != null) { SocketAttacher socketAttacher = GetComponent <SocketAttacher>(); socketAttacher.DetachFromGameSocket(_game); socketAttacher.MoveToDropSocket(_game); } _game = null; _currAbility = null; animator.SetBool("Unhappy", false); animator.SetBool("Working", false); }
// Use this for initialization void Start() { socketAttacher = GetComponent <SocketAttacher>(); animator = GetComponentInChildren <Animator>(); throwAudio = GetComponent <AudioSource>(); }