示例#1
0
 private void Awake()
 {
     //取得
     _put_Out_Item = GetComponent <PutOutSmallItems>();
     _sprite       = GetComponent <SpriteRenderer>();
     //初期値代入
     DEFAULT_LIFE = new List <int>(life);
 }
示例#2
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);
 }