void Awake() { isActive = false; charactersInside = new HashSet<GameObject>(); neko = GetComponentInChildren<Neko>(); vortex = GetComponentInChildren<ParticlesActivator>(); }
// Use this for initialization void Awake() { if (characterManagerPrefab == null) { characterManagerPrefab = GameObject.FindGameObjectWithTag("CharacterManager"); } characterManager = characterManagerPrefab.GetComponent<CharacterManager>(); characterMovement = GetComponent<CharacterMovement>(); playerUse = GetComponent<PlayerUse>(); CharacterAnimationController.SetAnimatorReference(characterName, GetComponent<Animator>()); rigBody = GetComponent<Rigidbody>(); specialIdleController = GetComponent<SpecialIdleController>(); deadParticles = transform.Find("DeadParticles").gameObject.GetComponent<ParticlesActivator>(); resurrectionParticles = transform.Find("ResurrectionParticles").gameObject.GetComponent<ParticlesActivator>(); playerParticles = transform.Find("PlayerParticles").gameObject.GetComponent<ParticlesActivator>(); }