void Awake()
 {
     dead = false;
     uim = GameObject.Find ("UserInterface").GetComponent<UserInterfaceManager>();
     fpsc = gameObject.GetComponent<FPSController> ();
     csc = GetComponentInChildren<CharacterSoundController>();
 }
Esempio n. 2
0
        private void Start()
        {
            sound = CharacterSoundController.Instance;

            currentScore       = 0;
            lastScoreHighlight = 0;
        }
Esempio n. 3
0
 // Start is called before the first frame update
 private void Start()
 {
     rig           = GetComponent <Rigidbody2D>();
     anim          = GetComponent <Animator>();
     sound         = GetComponent <CharacterSoundController>();
     lastPositionX = transform.position.x;
 }
    // Start is called before the first frame update
    void Start()
    {
        rig   = GetComponent <Rigidbody2D>();
        anim  = GetComponent <Animator>();
        sound = GetComponent <CharacterSoundController>();

        gameOverScreen.SetActive(false);
    }
 public void Init(GameObject manager)
 {
     cm = manager.GetComponent<CharacterManager>();
     am = manager.GetComponent<AnnouncementManager>();
     uim = GameObject.Find ("UserInterface").GetComponent<UserInterfaceManager>();
     cas = GetComponentInChildren<CharacterSoundController>();
     health = maximumHealth;
     UpdateHealthToUI ();
 }
 void Awake()
 {
     uim = GameObject.Find("UserInterface").GetComponent<UserInterfaceManager>();
     cas = GetComponentInChildren<CharacterSoundController>();
     bulletSpawnPoint = transform.FindChild("Camera");
     overlay = bulletSpawnPoint.FindChild("Overlay").gameObject;
     bulletSpawnPoint = bulletSpawnPoint.FindChild("BulletSpawnPoint");
     crossHairs = overlay.transform.FindChild ("Crosshairs").gameObject;
     dead = false;
 }
    void Awake()
    {
        csc = GetComponentInChildren<CharacterSoundController>();
        uim = GameObject.Find("UserInterface").GetComponent<UserInterfaceManager>();
        lc = GetComponentInChildren<LaserController>();
        cameraTf = transform.FindChild("Camera");
        overlay = cameraTf.FindChild ("Overlay").gameObject;
        crosshairs = overlay.transform.FindChild ("Crosshairs").gameObject;
        dead = false;

        actionCooldown = 0.6f;
        previousActionTime = Time.time;
    }
 void Awake()
 {
     handAnimator = transform.FindChild("Camera").FindChild("Overlay").FindChild("Hands").GetComponent<Animator>();
     dead = false;
     uim = GameObject.Find("UserInterface").GetComponent<UserInterfaceManager>();
     cas = GetComponentInChildren<CharacterSoundController>();
     cameraTf = transform.FindChild("Camera");
     overlay = cameraTf.FindChild ("Overlay").gameObject;
     ps = overlay.transform.FindChild("Particles").GetComponent<ParticleSystem>();
     weaponPivot = cameraTf.FindChild ("WeaponPivot").gameObject;
     slashRange = GetComponentInChildren<MeleeRangeInformer> ();
     weaponPivot.SetActive (false);
     actionCooldown = 0.7f;
     previousActionTime = Time.time;
     enemyInAim = false;
     //mwd = weaponPivot.GetComponentInChildren<MeleeWeaponDamages> ();
 }
 private void Start()
 {
     rb    = GetComponent <Rigidbody2D>();
     anim  = GetComponent <Animator>();
     sound = GetComponent <CharacterSoundController>();
 }
    //-------------------------------   Unity Base Functions
    void Start()
    {
        if (Application.platform != RuntimePlatform.WindowsEditor)
        {
            switch (PlayerPrefs.GetInt("Controller_Type"))
            {
                case 0:
                    currentInputMethod = CurrentInputMethod.touch;
                    break;
                case 1:
                case 2:
                case 3:
                    currentInputMethod = CurrentInputMethod.touchButtons;
                    break;
                default:
                    break;
            }
        }
        else
            currentInputMethod = CurrentInputMethod.keybord;

        body2D = GetComponent<Rigidbody2D>();
        anim = GetComponent<Animator>();
        fPreviousYPos = transform.position.y;

        soundController = GetComponent<CharacterSoundController>();
    }
Esempio n. 11
0
 private void Awake()
 {
     Instance = this;
     Source   = GetComponent <AudioSource>();
 }