void Start() { player = GameObject.Find("player"); Memory = GameObject.Find("location memory"); //座標記録オブジェクト取得 Code = Memory.GetComponent <Locationmemory>(); //オブジェクト内のスクリプト取得 }
// Start is called before the first frame update void Start() { animator = GetComponent <Animator>(); Memory = GameObject.Find("location memory"); crystal = this.gameObject; crystal_X = crystal.transform.localPosition.x; crystal_Y = crystal.transform.localPosition.y; Code = Memory.GetComponent <Locationmemory>(); Memory_world = GameObject.Find("select memory"); Code2 = Memory_world.GetComponent <Select_memory>(); if (FlagManager.Instance.flags[flag] == true) { animator.SetBool("color", true); } }