コード例 #1
0
 void Start()
 {
     swordUI = Singleton_Service.GetSingleton <SwordUI>();
     IPL     = Singleton_Service.GetSingleton <Input_Listeners>();
     rb      = GetComponent <Rigidbody>();
     //StartCoroutine("CheckShurikenParent");
 }
コード例 #2
0
 void Start()
 {
     swordUI = Singleton_Service.GetSingleton <SwordUI>();
     IPL     = Singleton_Service.GetSingleton <Input_Listeners>();
     rb      = GetComponent <Rigidbody>();
     this.GetComponent <CapsuleCollider>().isTrigger = true;
     swordSource = GetComponent <AudioSource>();
 }
コード例 #3
0
ファイル: BossGM.cs プロジェクト: ckusuma/Flaming-Ninja-Code
 void Start()
 {
     enemyBirds     = new List <BirdStatePattern>();
     OnSummon       = new UnityEvent();
     swordUI        = Singleton_Service.GetSingleton <SwordUI>();
     playerPosition = GameObject.FindGameObjectWithTag("Player Position").transform;
     UpdateBossUI();
     StartCoroutine("BossBehavior");
 }
コード例 #4
0
ファイル: GM.cs プロジェクト: ckusuma/Flaming-Ninja-Code
 private void Start()
 {
     swordUI    = Singleton_Service.GetSingleton <SwordUI>();
     enemyBirds = new List <BirdStatePattern>();
     if (spawnPoints != null && birdPrefab != null)
     {
         StartCoroutine("SpawnFlyingEnemies");
     }
 }
コード例 #5
0
    void Start()
    {
        isHit = false;
        if (this.transform.parent != null)
        {
            attachedEnemy = this.transform.parent.GetComponent <Enemy>();
        }

        currElementComponent = GetComponent <Fire>();
        playerSword          = Singleton_Service.GetSingleton <SwordUI>();
    }
コード例 #6
0
 void Start()
 {
     //Register this boid with the list of boids.
     boidList.Add(this.GetComponent <BirdStatePattern>());
     //Cache the rigidbody for later...
     body           = GetComponent <Rigidbody>();
     swordUI        = Singleton_Service.GetSingleton <SwordUI>();
     anim           = GetComponent <Animator>();
     enemyAudio     = GetComponent <AudioSource>();
     gm             = Singleton_Service.GetSingleton <GM>();
     gmb            = Singleton_Service.GetSingleton <BossGM>();
     playerPosition = GameObject.FindGameObjectWithTag("Player Position").transform;
     StartCoroutine("WingFlapTimer");
 }
コード例 #7
0
    void Start()
    {
        swordUI           = Singleton_Service.GetSingleton <SwordUI>();
        gm                = Singleton_Service.GetSingleton <GM>();
        hitMarkerPatterns = new List <string>();
        hitMarkers        = new List <GameObject>();

        hitMarkerPatterns.Add("diagonal");
        hitMarkerPatterns.Add("vertical");
        hitMarkerPatterns.Add("horizontal");
        hitMarkerPatterns.Add("cross");

        aiStates = GetComponent <EnemyStatePattern>();
        RandomizeHitMarkerPlacement();
    }
コード例 #8
0
    void Start()
    {
        IPL          = Singleton_Service.GetSingleton <Input_Listeners>();
        swordUI      = Singleton_Service.GetSingleton <SwordUI>();
        source       = GetComponent <AudioSource>();
        attachedHand = GetComponent <NVRHand>();

        if (attachedGun.gameObject.activeSelf)
        {
            canThrow = false;
        }
        else
        {
            canThrow = true;
        }
    }
コード例 #9
0
 void Start()
 {
     IPL     = Singleton_Service.GetSingleton <Input_Listeners>();
     swordUI = Singleton_Service.GetSingleton <SwordUI>();
     audio   = GetComponent <AudioSource>();
 }
コード例 #10
0
ファイル: Goal.cs プロジェクト: ckusuma/Flaming-Ninja-Code
 void Start()
 {
     swordUI    = Singleton_Service.GetSingleton <SwordUI>();
     gm         = Singleton_Service.GetSingleton <GM>();
     moneySound = GetComponent <AudioSource>();
 }
コード例 #11
0
ファイル: Spike.cs プロジェクト: ckusuma/Flaming-Ninja-Code
 // Use this for initialization
 void Start()
 {
     swordUI = Singleton_Service.GetSingleton <SwordUI>();
 }
コード例 #12
0
ファイル: Player.cs プロジェクト: ckusuma/Flaming-Ninja-Code
 void Start()
 {
     swordUI      = Singleton_Service.GetSingleton <SwordUI>();
     switchSource = GetComponent <AudioSource>();
     //StartCoroutine("EnableSurroundingObjects");
 }