private void Awake() { MP = MaxMP; audioSource = GetComponent <AudioSource>(); buttleState = ButtleState.Instance; posingController = GetComponent <PosingController>(); }
//Standクラスのインスタンスを取得する public static ButtleState GetInstance() { if (buttleState == null) { buttleState = new Attack(); } return(buttleState); }
//Standクラスのインスタンスを取得する public static ButtleState GetInstance() { if (buttleState == null) { buttleState = new Initialize(); } return(buttleState); }
//Standクラスのインスタンスを取得する public static ButtleState GetInstance() { if (buttleState == null) { buttleState = new EnemyCreate(); } return(buttleState); }
//Standクラスのインスタンスを取得する public static ButtleState GetInstance() { if (buttleState == null) { buttleState = new DropOperation(); } return(buttleState); }
// Use this for initialization void Start() { PlayerManager = GameObject.Find("PlayerManager"); //Enemy = GameObject.Find("Enemy"); // Enemy = Instantiate(Enemy); ButtleState = EnemyCreate.GetInstance(); //ステージ生成 Stage = Instantiate(Stage); EnemyManager = Instantiate(EnemyManager); // BottanManager = GameObject.Find("BottonManager"); }
//現在の状態を変更する public void ChangeState(ButtleState buttlestate) { ButtleState = buttlestate; }
private void Awake() { audio = GetComponent <AudioSource>(); buttleState = ButtleState.Instance; MP = MaxMP; }
// Start is called before the first frame update private void Awake() { buttleState = ButtleState.Instance; sceneLoader = GetComponent <SceneLoader>(); }
// Start is called before the first frame update private void Awake() { buttleState = ButtleState.Instance; }