void Start() { //同じゲームオブジェクトにあるPlayableDirectorを取得する playableDirector = GetComponent <PlayableDirector>(); MEM = transform.parent.GetComponent <MovieEventMaster>(); PlayTimeline(); }
// Start is called before the first frame update void Awake() { CC = GameObject.Find("Main Camera").GetComponent <CameraController>(); PC = GetComponent <PlayerController>(); MEM = GameObject.Find("MovieEventMaster").GetComponent <MovieEventMaster>(); rb = GetComponent <Rigidbody2D>(); animator = GetComponent <Animator>(); Transform dodai = GameObject.Find("PlayerUI").transform.Find("dodai"); UB_up = dodai.Find("upButton").GetComponent <UIBottun>(); UB_down = dodai.Find("downButton").GetComponent <UIBottun>(); UB_left = dodai.Find("leftButton").GetComponent <UIBottun>(); UB_right = dodai.Find("rightButton").GetComponent <UIBottun>(); UB_sword = dodai.Find("SwordButton").GetComponent <UIBottun>(); UB_magic = dodai.Find("MagicButton").GetComponent <UIBottun>(); UB_gun = dodai.Find("GunButton").GetComponent <UIBottun>(); UB_move = dodai.Find("MoveButton").GetComponent <UIBottun>(); isPressed = false; isreroad = true; }
// Called when the owning graph starts playing public override void OnGraphStart(Playable playable) { //同じゲームオブジェクトにあるPlayableDirectorを取得する MEM = GameObject.Find("MovieEventMaster").GetComponent <MovieEventMaster>(); }