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