예제 #1
0
 void Start()
 {
     //同じゲームオブジェクトにあるPlayableDirectorを取得する
     playableDirector = GetComponent <PlayableDirector>();
     MEM = transform.parent.GetComponent <MovieEventMaster>();
     PlayTimeline();
 }
예제 #2
0
    // 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;
    }
예제 #3
0
 // Called when the owning graph starts playing
 public override void OnGraphStart(Playable playable)
 {
     //同じゲームオブジェクトにあるPlayableDirectorを取得する
     MEM = GameObject.Find("MovieEventMaster").GetComponent <MovieEventMaster>();
 }