コード例 #1
0
ファイル: BossTrigger.cs プロジェクト: newmanwillis/Dead_Week
 // Use this for initialization
 void Start()
 {
     NewCamPos = new Vector3(0, 42.83717f, -500);
     //NewBlockPos = new Vector3(5.091614f, -101.8378f, 0);
     FZSM          = GameObject.Find("FootballZombie").GetComponent <FootballZombieSM>();
     BlockEntrance = GameObject.Find("Referee Zombie Bottom");
     BlockEntrance.SetActive(false);
 }
コード例 #2
0
ファイル: BossTrigger.cs プロジェクト: newmanwillis/Dead_Week
 // Use this for initialization
 void Start()
 {
     NewCamPos = new Vector3(0, 42.83717f, -500);
     //NewBlockPos = new Vector3(5.091614f, -101.8378f, 0);
     FZSM = GameObject.Find("FootballZombie").GetComponent<FootballZombieSM>();
     BlockEntrance = GameObject.Find("Referee Zombie Bottom");
     BlockEntrance.SetActive(false);
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     _player = GameObject.Find("Player").GetComponent <Player>();
     _health = GetComponent <FootballZombieHealth>();
     CC      = GetComponent <CharacterController>();
     curAnim = GetComponent <tk2dSpriteAnimator>();
     FZSM    = GetComponent <FootballZombieSM>();
 }
コード例 #4
0
    void Start()
    {
        FZSM    = GetComponent <FootballZombieSM>();
        curAnim = GetComponent <tk2dSpriteAnimator>();

        RaiseZombieZone = GameObject.Find("RaiseZombieZone").transform;
        ZoneMaxX        = (int)RaiseZombieZone.collider.bounds.max.x;
        ZoneMinX        = (int)RaiseZombieZone.collider.bounds.min.x;
        ZoneMaxY        = (int)RaiseZombieZone.collider.bounds.max.y;
        ZoneMinY        = (int)RaiseZombieZone.collider.bounds.min.y;

        print("MAX: " + RaiseZombieZone.collider.bounds.max);
        print("MIN: " + RaiseZombieZone.collider.bounds.min);

        // StartCoroutine(RaiseZombie());
    }
コード例 #5
0
    void Start()
    {
        FZSM = GetComponent<FootballZombieSM>();
        curAnim = GetComponent<tk2dSpriteAnimator>();

        RaiseZombieZone = GameObject.Find("RaiseZombieZone").transform;
        ZoneMaxX = (int)RaiseZombieZone.collider.bounds.max.x;
        ZoneMinX = (int)RaiseZombieZone.collider.bounds.min.x;
        ZoneMaxY = (int)RaiseZombieZone.collider.bounds.max.y;
        ZoneMinY = (int)RaiseZombieZone.collider.bounds.min.y;

        print ("MAX: " + RaiseZombieZone.collider.bounds.max);
        print ("MIN: " + RaiseZombieZone.collider.bounds.min);

        // StartCoroutine(RaiseZombie());
    }
コード例 #6
0
 // Use this for initialization
 void Start()
 {
     _player = GameObject.Find("Player").GetComponent<Player>();
     _health = GetComponent<FootballZombieHealth>();
     CC = GetComponent<CharacterController>();
     curAnim = GetComponent<tk2dSpriteAnimator>();
     FZSM = GetComponent<FootballZombieSM>();
 }