Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     Robot      = this.gameObject;
     RobotRb    = this.GetComponent <Rigidbody>();
     DefaultPos = Robot.transform.position;
     Move       = gameObject.AddComponent <RobotMove>();
     Move.Propaty(Robot, scale, rotateSpeed, MoveDeadTime, true, SpeedCurve);
     RobotLevel = PlayerPrefs.GetInt("Robot_Level", 2);
     Debug.Log("Robot_Level=" + RobotLevel);
     colliderDistance = 0.6f * 5f * Robot.transform.localScale.x;
 }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        robot      = GameObject.Find("MainRobot");
        ItemKeeper = GameObject.Find("ItemController");

        //RobotRb = robot.GetComponent<Rigidbody>();
        //RobotRl = robot.GetComponent<RoomLiving>();
        //Move = gameObject.AddComponent<RobotMove>();

        Move.Propaty(robot, scale, rotateSpeed, MoveDeadTime, true, SpeedCurve);
    }
Beispiel #3
0
 private void Start()
 {
     Trans = gameObject.AddComponent <RobotMove>();
     Trans.Propaty(View, scale, rotateSpeed, MoveDeadTime, false, SpeedCurve);
 }