Пример #1
0
 protected void Awake()
 {
     //取得
     _put_Out_Item  = gameObject.AddComponent <PutOutSmallItems>();
     _sprite        = GetComponent <SpriteRenderer>();
     _camera_Shake  = GameObject.FindWithTag("MainCamera").GetComponent <CameraShake>();
     poisoned_Enemy = gameObject.AddComponent <PoisonedEnemy>();
     //初期値代入
     DEFAULT_LIFE = new List <int>(life);
 }
 // Use this for initialization
 void Awake()
 {
     //取得
     _sprite                        = GetComponent <SpriteRenderer>();
     default_Color                  = _sprite.color;
     damaged_Color                  = default_Color * new Color(1.0f, 0.7f, 0.7f, 1.0f);
     default_Life                   = life;
     spider_Footing_Enemy           = gameObject.AddComponent <SpiderFootingEnemy>();
     poisoned_Enemy                 = gameObject.AddComponent <PoisonedEnemy>();
     vanish_Shoot_If_Collected_Hina = Resources.Load("Effect/EnemyVanishShoot") as GameObject;
 }