Пример #1
0
 private void InitReferences()
 {
     mirrorScript   = GetComponent <CreateMirrors>();
     animate        = GetComponent <Animator>();
     meshController = GetComponent <SetMeshFor2D>();
     manager        = WorldConstants.MatchController.GetComponent <LevelManager>();
 }
Пример #2
0
    void Awake()
    {
        //Cache references to other actor components.

        OwnerStats     = GetComponent <Stats>();
        ActorData      = GetComponent <IDData>();
        Animator       = GetComponent <Animator>();
        MeshController = GetComponent <SetMeshFor2D>();
        Coll           = GetComponent <BoxCollider>();
        ColManager     = GetComponent <CollisionManager>();

        ActorProps   = GetComponent <ActorProperties>();
        PlayerProps  = GetComponent <PlayerProperties>();
        CameraConsts = WorldConstants.ConstantsOwner.GetComponent <CameraConstants>();
    }