Exemplo n.º 1
0
    private void Awake()
    {
        instance = this;
        //get Suimono Specific Objects
        suimonoGameObject = GameObject.Find("SUIMONO_Module");
        if (suimonoGameObject != null) suimonoModuleObject = suimonoGameObject.GetComponent<SuimonoModule>();

        SetTarget(cameraTarget);

        //if (vehicleTarget != null){
        //	vehiclePosition = vehicleTarget.gameObject.Find("PlayerPositionMarker").transform;
        //	vehicleExitPosition = vehicleTarget.gameObject.Find("PlayerExitMarker").transform;
        //	vehicle_engine_object = vehicleTarget.gameObject.GetComponent(sui_demo_boatAnim) as sui_demo_boatAnim;
        //}

        MC = this.gameObject.GetComponent<PlayerControllerMaster>();
        IC = this.gameObject.GetComponent<PlayerInputController>();
    }
Exemplo n.º 2
0
 private void Start()
 {
     useController = currentControllerType;
     characterController = gameObject.GetComponent<ControllerPlayer>();
     boatController = gameObject.GetComponent<ControllerBoat>();
 }