コード例 #1
0
 void Start()
 {
     vertical = GetComponent <VerticalMove>();
     if (useVelocity)
     {
         GetComponent <Rigidbody>().velocity = transform.forward * power;
     }
 }
コード例 #2
0
ファイル: AutoMove.cs プロジェクト: curtonius/Arcade
    // Use this for initialization
    void Start()
    {
        verticalMove   = GetComponent <VerticalMove>();
        horizontalMove = GetComponent <HorizontalMove>();

        if (random)
        {
            Random.InitState((int)Time.time);
        }
    }
コード例 #3
0
 public override void UpdateForMovement()
 {
     if (counter >= 0)
     {
         counter -= Time.deltaTime;
     }
     else
     {
         moveBehaviour = new VerticalMove();
     }
 }
コード例 #4
0
 // Use this for initialization
 void Start()
 {
     vert = GetComponentInParent <VerticalMove>();
 }
コード例 #5
0
 // Use this for initialization
 void Start()
 {
     anim = GetComponentInChildren <Animator>();
     vert = GetComponentInParent <VerticalMove>();
 }
コード例 #6
0
 void Awake()
 {
     vert_move    = this;
     monster_head = gameObject.transform;
 }