Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        mouseWeapon = FindObjectOfType <MouseWeapon>();

        startSprite = GetComponent <SpriteRenderer>().sprite;
        targetZRot  = transform.eulerAngles.z;
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        mouseWeapon = FindObjectOfType <MouseWeapon>();
        puppet      = FindObjectOfType <Puppet>();

        slapSpawnTimer = new Timer(0.23f);
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        mouseWeapon       = FindObjectOfType <MouseWeapon>();
        prefabManager     = FindObjectOfType <PrefabManager>();
        gameActionManager = FindObjectOfType <GameActionManager>();
        puppet            = FindObjectOfType <Puppet>();

        SetListeners();
    }
Ejemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        prefabManager = FindObjectOfType <PrefabManager>();
        mouseWeapon   = FindObjectOfType <MouseWeapon>();
        audioManager  = FindObjectOfType <AudioManager>();
        puppet        = FindObjectOfType <Puppet>();
        gameGUI       = FindObjectOfType <GameGUICanvas>();
        shop          = FindObjectOfType <Shop>();

        spawnCreditsTimer = new Timer(4f);
        UpgradeSprite     = prefabManager.GetWeaponSprite(PrefabManager.E_WEAPON.GLOVE);
    }