Exemple #1
0
 void Start()
 {
     ai               = GetComponent <CarAIControl>();
     CollCheck        = GetComponent <csCollisionCheck>();
     car              = GetComponent <CarController>();
     childBody        = gameObject.transform.FindChild("Image").gameObject;
     car_body         = gameObject.transform.FindChild("Body").gameObject;
     Big_Jump_Target  = GameObject.Find("Big_Jump_Area").transform.FindChild("Big_Jump_Point");
     Big_Jump_Target1 = GameObject.Find("Big_Jump_Area").transform.FindChild("Big_Jump_Point1");
     tracker          = GetComponent <WaypointProgressTracker>();
     StartCoroutine(JumperTrigger());
 }
Exemple #2
0
    ///

    void Start()
    {
        GooglePlayGames.PlayGamesPlatform.Activate();

        P1_Button_Text.text = UserManager.Instance().name;

        GameFIN = GameObject.Find("Directional Light").GetComponent <csGameFINISH>();

        P1_Name.text = UserManager.Instance().name;

        Player1_traker = GameObject.Find("MyPlayer").GetComponent <WaypointProgressTracker>();
        Player2_traker = GameObject.Find("Computer1").GetComponent <WaypointProgressTracker>();
        Player3_traker = GameObject.Find("Computer2").GetComponent <WaypointProgressTracker>();
        Player4_traker = GameObject.Find("Computer3").GetComponent <WaypointProgressTracker>();

        Player1_CollCheck = GameObject.Find("MyPlayer").GetComponent <csCollisionCheck>();
        Player2_CollCheck = GameObject.Find("Computer1").GetComponent <csCollisionCheck>();
        Player3_CollCheck = GameObject.Find("Computer2").GetComponent <csCollisionCheck>();
        Player4_CollCheck = GameObject.Find("Computer3").GetComponent <csCollisionCheck>();

        P1_Car_State = GameObject.Find("MyPlayer").GetComponent <csCarState>();
        P2_Car_State = GameObject.Find("Computer1").GetComponent <csCarState>();
        P3_Car_State = GameObject.Find("Computer2").GetComponent <csCarState>();
        P4_Car_State = GameObject.Find("Computer3").GetComponent <csCarState>();

        P1_Carcontroller = GameObject.Find("MyPlayer").GetComponent <CarController>();
        P2_Carcontroller = GameObject.Find("Computer1").GetComponent <CarController>();
        P3_Carcontroller = GameObject.Find("Computer2").GetComponent <CarController>();
        P4_Carcontroller = GameObject.Find("Computer3").GetComponent <CarController>();

        P1_Speed1_Ex = P1_Car_State.maxSpeed * 0.8f;
        P1_Speed1_0x = P1_Car_State.maxSpeed * 1.2f;
        P1_Speed1_1x = P1_Car_State.maxSpeed * 1.5f;
        P1_Speed1_2x = P1_Car_State.maxSpeed * 2.0f;

        P2_Speed1_Ex = P1_Car_State.maxSpeed * 0.8f;
        P2_Speed1_0x = P2_Car_State.maxSpeed * 1.2f;
        P2_Speed1_1x = P2_Car_State.maxSpeed * 1.5f;
        P2_Speed1_2x = P2_Car_State.maxSpeed * 2.0f;

        P3_Speed1_Ex = P1_Car_State.maxSpeed * 0.8f;
        P3_Speed1_0x = P3_Car_State.maxSpeed * 1.2f;
        P3_Speed1_1x = P3_Car_State.maxSpeed * 1.5f;
        P3_Speed1_2x = P3_Car_State.maxSpeed * 2.0f;

        P4_Speed1_Ex = P1_Car_State.maxSpeed * 0.8f;
        P4_Speed1_0x = P4_Car_State.maxSpeed * 1.2f;
        P4_Speed1_1x = P4_Car_State.maxSpeed * 1.5f;
        P4_Speed1_2x = P4_Car_State.maxSpeed * 2.0f;
    }
Exemple #3
0
 void Start()
 {
     ai = GetComponent<CarAIControl>();
     CollCheck = GetComponent<csCollisionCheck>();
     car = GetComponent<CarController>();
     childBody = gameObject.transform.FindChild("Image").gameObject;
     car_body = gameObject.transform.FindChild("Body").gameObject;
     Big_Jump_Target = GameObject.Find("Big_Jump_Area").transform.FindChild("Big_Jump_Point");
     Big_Jump_Target1 = GameObject.Find("Big_Jump_Area").transform.FindChild("Big_Jump_Point1");
     tracker = GetComponent<WaypointProgressTracker>();
     StartCoroutine(JumperTrigger());
 }
Exemple #4
0
    ///
    void Start()
    {
        GooglePlayGames.PlayGamesPlatform.Activate();

        P1_Button_Text.text = UserManager.Instance().name;

        GameFIN = GameObject.Find("Directional Light").GetComponent<csGameFINISH>();

        P1_Name.text = UserManager.Instance().name;

        Player1_traker = GameObject.Find("MyPlayer").GetComponent<WaypointProgressTracker>();
        Player2_traker = GameObject.Find("Computer1").GetComponent<WaypointProgressTracker>();
        Player3_traker = GameObject.Find("Computer2").GetComponent<WaypointProgressTracker>();
        Player4_traker = GameObject.Find("Computer3").GetComponent<WaypointProgressTracker>();

        Player1_CollCheck = GameObject.Find("MyPlayer").GetComponent<csCollisionCheck>();
        Player2_CollCheck = GameObject.Find("Computer1").GetComponent<csCollisionCheck>();
        Player3_CollCheck = GameObject.Find("Computer2").GetComponent<csCollisionCheck>();
        Player4_CollCheck = GameObject.Find("Computer3").GetComponent<csCollisionCheck>();

        P1_Car_State = GameObject.Find("MyPlayer").GetComponent<csCarState>();
        P2_Car_State = GameObject.Find("Computer1").GetComponent<csCarState>();
        P3_Car_State = GameObject.Find("Computer2").GetComponent<csCarState>();
        P4_Car_State = GameObject.Find("Computer3").GetComponent<csCarState>();

        P1_Carcontroller = GameObject.Find("MyPlayer").GetComponent<CarController>();
        P2_Carcontroller = GameObject.Find("Computer1").GetComponent<CarController>();
        P3_Carcontroller = GameObject.Find("Computer2").GetComponent<CarController>();
        P4_Carcontroller = GameObject.Find("Computer3").GetComponent<CarController>();

        P1_Speed1_Ex = P1_Car_State.maxSpeed * 0.8f;
        P1_Speed1_0x = P1_Car_State.maxSpeed * 1.2f;
        P1_Speed1_1x = P1_Car_State.maxSpeed * 1.5f;
        P1_Speed1_2x = P1_Car_State.maxSpeed * 2.0f;

        P2_Speed1_Ex = P1_Car_State.maxSpeed * 0.8f;
        P2_Speed1_0x = P2_Car_State.maxSpeed * 1.2f;
        P2_Speed1_1x = P2_Car_State.maxSpeed * 1.5f;
        P2_Speed1_2x = P2_Car_State.maxSpeed * 2.0f;

        P3_Speed1_Ex = P1_Car_State.maxSpeed * 0.8f;
        P3_Speed1_0x = P3_Car_State.maxSpeed * 1.2f;
        P3_Speed1_1x = P3_Car_State.maxSpeed * 1.5f;
        P3_Speed1_2x = P3_Car_State.maxSpeed * 2.0f;

        P4_Speed1_Ex = P1_Car_State.maxSpeed * 0.8f;
        P4_Speed1_0x = P4_Car_State.maxSpeed * 1.2f;
        P4_Speed1_1x = P4_Car_State.maxSpeed * 1.5f;
        P4_Speed1_2x = P4_Car_State.maxSpeed * 2.0f;
    }
Exemple #5
0
    void Start()
    {
        Ranking = GameObject.Find("Directional Light").GetComponent<csRanking>();

        Player1_traker = GameObject.Find("MyPlayer").GetComponent<WaypointProgressTracker>();
        Player2_traker = GameObject.Find("Computer1").GetComponent<WaypointProgressTracker>();
        Player3_traker = GameObject.Find("Computer2").GetComponent<WaypointProgressTracker>();
        Player4_traker = GameObject.Find("Computer3").GetComponent<WaypointProgressTracker>();

        P1_CollCheck = GameObject.Find("MyPlayer").GetComponent<csCollisionCheck>();
        P2_CollCheck = GameObject.Find("Computer1").GetComponent<csCollisionCheck>();
        P3_CollCheck = GameObject.Find("Computer2").GetComponent<csCollisionCheck>();
        P4_CollCheck = GameObject.Find("Computer3").GetComponent<csCollisionCheck>();

        P1_Controller = GameObject.Find("MyPlayer").GetComponent<CarController>();
        P2_Controller = GameObject.Find("Computer1").GetComponent<CarController>();
        P3_Controller = GameObject.Find("Computer2").GetComponent<CarController>();
        P4_Controller = GameObject.Find("Computer3").GetComponent<CarController>();
    }
Exemple #6
0
    ///
    void Start()
    {
        GameFIN = GameObject.Find("Directional Light").GetComponent<csGameFINISH>();

        Player1_traker = GameObject.Find("MyPlayer").GetComponent<WaypointProgressTracker>();
        Player2_traker = GameObject.Find("Computer1").GetComponent<WaypointProgressTracker>();
        Player3_traker = GameObject.Find("Computer2").GetComponent<WaypointProgressTracker>();
        Player4_traker = GameObject.Find("Computer3").GetComponent<WaypointProgressTracker>();

        Player1_CollCheck = GameObject.Find("MyPlayer").GetComponent<csCollisionCheck>();
        Player2_CollCheck = GameObject.Find("Computer1").GetComponent<csCollisionCheck>();
        Player3_CollCheck = GameObject.Find("Computer2").GetComponent<csCollisionCheck>();
        Player4_CollCheck = GameObject.Find("Computer3").GetComponent<csCollisionCheck>();

        P1_Car_State = GameObject.Find("MyPlayer").GetComponent<csCarState>();
        P2_Car_State = GameObject.Find("Computer1").GetComponent<csCarState>();
        P3_Car_State = GameObject.Find("Computer2").GetComponent<csCarState>();
        P4_Car_State = GameObject.Find("Computer3").GetComponent<csCarState>();

        P1_Carcontroller = GameObject.Find("MyPlayer").GetComponent<CarController>();
        P2_Carcontroller = GameObject.Find("Computer1").GetComponent<CarController>();
        P3_Carcontroller = GameObject.Find("Computer2").GetComponent<CarController>();
        P4_Carcontroller = GameObject.Find("Computer3").GetComponent<CarController>();

        P1_Speed1_0x = P1_Car_State.maxSpeed;
        P1_Speed1_1x = P1_Car_State.maxSpeed * 1.5f;
        P1_Speed1_2x = P1_Car_State.maxSpeed * 2.0f;

        P2_Speed1_0x = P2_Car_State.maxSpeed;
        P2_Speed1_1x = P2_Car_State.maxSpeed * 1.5f;
        P2_Speed1_2x = P2_Car_State.maxSpeed * 2.0f;

        P3_Speed1_0x = P3_Car_State.maxSpeed;
        P3_Speed1_1x = P3_Car_State.maxSpeed * 1.5f;
        P3_Speed1_2x = P3_Car_State.maxSpeed * 2.0f;

        P4_Speed1_0x = P4_Car_State.maxSpeed;
        P4_Speed1_1x = P4_Car_State.maxSpeed * 1.5f;
        P4_Speed1_2x = P4_Car_State.maxSpeed * 2.0f;
    }