Inheritance: MonoBehaviour
Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        this.globalScript = GameObject.Find("GlobalScript").GetComponent<GlobalScript>();

        // Init Fog colors array
        FogColorList = new Color[4];

        // Fog Sunny
        FogColorList[0] = new Color(0.431372549f, 0.705882353f, 1f, 1f);
        FogColorList[1] = new Color(0.352941176f, 0.823529412f, 1f, 1f);

        // Fog Night
        FogColorList[2] = new Color(0.1176470588235294f, 0.196078431372549f, 0.392156862745098f, 1f);
        FogColorList[3] = new Color(0.0784313725490196f, 0.1568627450980392f, 0.392156862745098f, 1f);

        // Init Ambient light colors array
        AmbientLightList = new Color[4];

        // Ambient Sunny
        AmbientLightList[0] = new Color(0.62745098f, 0.705882353f, 0.705882353f, 1f);
        AmbientLightList[1] = new Color(0.705882353f, 0.705882353f, 0.705882353f, 1f);

        // Ambient Night
        AmbientLightList[2] = new Color(0.1372549019607843f, 0.1372549019607843f, 0.1372549019607843f, 1f);
        AmbientLightList[3] = new Color(0.1372549019607843f, 0.1372549019607843f, 0.1372549019607843f, 1f);

        this.SwitchSkyBox(this.globalScript.tipoDiaEscolhido - 1);
    }
    void Start()
    {
        gscript = GameObject.Find("Global").GetComponent<GlobalScript>();
        idleAnimation = "look";

        result = new float[3];
        targetPos = new float[3];
    }
Ejemplo n.º 3
0
    void Start()
    {
        topCam = GameObject.Find("Top Camera").GetComponent<Camera>();
        perspCam = GameObject.Find("Persp Camera").GetComponent<Camera>();
        marioCam = GameObject.Find("Mario Camera").GetComponent<Camera>();

        mscript = GameObject.Find("Global").GetComponent<MapScript>();
        gscript = GameObject.Find("Global").GetComponent<GlobalScript>();
    }
Ejemplo n.º 4
0
    // Use this for initialization
    void Awake()
    {
        instance = this;
        Screen.lockCursor = true;
        mouseLookScripts = GameObject.FindGameObjectWithTag("Player").GetComponentsInChildren<MouseLook>();
        inputController = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren<FPSInputController>();

        LightSourceBehaviour.lightSources.Clear();
    }
    // Use this for initialization
    void Start()
    {
        Screen.showCursor = false;

        this.globalScript = GameObject.Find("GlobalScript").GetComponent<GlobalScript>();

        this.source = GetComponent<AudioSource>();
        this.controller = GetComponent<CharacterController>();
    }
Ejemplo n.º 6
0
    // Use this for initialization
    void Start()
    {
        ourGlobalScript = this;

        ourUnitScripts = Object.FindObjectsOfType<UnitScript>();

        ourPlayerScripts = Object.FindObjectsOfType<PlayerScript>();

        ourCursorScript = Object.FindObjectOfType<CursorScript>();

        ourTurnScript = Object.FindObjectOfType<TurnScript>();

        ourPhaseScript = Object.FindObjectOfType<PhaseScript>();
    }
Ejemplo n.º 7
0
 void Update()
 {
     script = globalManager.GetComponent<GlobalScript> ();
 }
 void Awake()
 {
     script = GameObject.Find("GlobalObject").GetComponent<GlobalScript>();
 }
    // Use this for initialization
    void Start()
    {
        this.globalScript = GameObject.Find("GlobalScript").GetComponent<GlobalScript>();

        this.SetaTexto(this.pontos.ToString());
    }
    void Start()
    {
        gscript = GameObject.Find("Global").GetComponent<GlobalScript>();
        mscript = GameObject.Find("Global").GetComponent<MapScript>();
        idleAnimation = "look";

        result = new float[3];
        targetPos = new float[3];
        startPos = new float[3];
        oldTargetPos = new Vector3(0,0,0);

        seekTarget = GameObject.Find("Target");

        target = seekTarget;
        occupyingSpot = null;
        occupying = false;
        seen = false;
        //GameObject hidingSpot = GameObject.Find("HidingSpot(Clone)");
        //if (hidingSpot != null) {
        //	target = hidingSpot;
        //}

        player = GameObject.Find("Player");

        behavior = (int)Behaviors.followpath;

        InvokeRepeating ("moveTargetAround", 1, 1);
    }
Ejemplo n.º 11
0
    // Use this for initialization
    void Start()
    {
        this.Iniciar();

        print("Start está ok!");

        Screen.showCursor = true;

        this.globalScript = GameObject.Find("GlobalScript").GetComponent<GlobalScript>();

        AudioSource globalAS = this.globalScript.gameObject.GetComponent<AudioSource>();
        globalAS.Stop();
        globalAS.volume = 1F;
        globalAS.Play();

        this.status = -1;

        source = GetComponent<AudioSource>();

        this.ChangeStatus();

        Invoke("MudaStatus", 5F);
    }
Ejemplo n.º 12
0
 // Use this for initialization
 void Start()
 {
     source = GetComponent<AudioSource>();
     this.globalScript = GameObject.Find("GlobalScript").GetComponent<GlobalScript>();
 }
Ejemplo n.º 13
0
    // Use this for initialization
    void Start()
    {
        this.globalScript = GameObject.Find("GlobalScript").GetComponent<GlobalScript>();

        canv = GameObject.Find("Canvas").GetComponent<Canvas>();
    }
Ejemplo n.º 14
0
 void Start()
 {
     gs = GameObject.Find("Global").GetComponent<GlobalScript>();
 }