コード例 #1
0
ファイル: CheckPoint.cs プロジェクト: ForsakenGS/LostKids
    void Awake() {
        isActive = false;
        charactersInside = new HashSet<GameObject>();
        neko = GetComponentInChildren<Neko>();
        vortex = GetComponentInChildren<ParticlesActivator>();

    }
コード例 #2
0
 // 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>();
 }