示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        motor      = GetComponent <RepairmanMotor>();
        ladderMove = GetComponent <BetterLadderMovement>();
        animator   = visuals.GetComponent <Animator>();
        rinput     = GetComponent <RepairmanInput>();
        fix        = GetComponent <RepairmanFix>();

        lastXPos = transform.localPosition.x;
    }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     motor      = GetComponent <RepairmanMotor>();
     ladderMove = GetComponent <BetterLadderMovement>();
     fix        = GetComponent <RepairmanFix>();
 }