//-------------------------------------------------------------------- // ● 初期化 //-------------------------------------------------------------------- protected virtual void Start() { recovery(); ai = GetComponent <AI>(); var save = Base_Scripts.get_instance() .GetComponent <Save_Data>(); }
//-------------------------------------------------------------------- // ● 更新(終了) //-------------------------------------------------------------------- protected override void update_end() { var status = GameObject.FindWithTag("Dragon") .GetComponent <AI_Status>(); var save = Base_Scripts.get_instance() .GetComponent <Save_Data>(); if (next_scene_name == "Ending") { // save.score = status.score; // save.item_unused = status.item_unused; // save.cleaning_evaluation = status.cleaning_evaluation; } // save.scene_name = SceneManager.GetActiveScene().name; base.update_end(); }
//-------------------------------------------------------------------- // ● 初期化 //-------------------------------------------------------------------- protected virtual void Start() { fade = Base_Scripts.get_instance().GetComponent <Fade>(); fade.change_state(Fade.State.IN); }
//-------------------------------------------------------------------- // ● 初期化(早) //-------------------------------------------------------------------- void Awake() { Base_Scripts.get_instance(); }