Пример #1
0
 void Start()
 {
     camera = GameObject.FindGameObjectWithTag("camera").GetComponent <CameraFollowScript>();
     OSES   = camera.GetComponent <onScreenElementsScript>();
     //player = GameObject.FindGameObjectWithTag ("player");
     currentXP = 0; baseXPMax = 100;
     // SETTING TANKS DAMAGE ABILITIES
     setAbilityOneDamage();
     setabilityTwoDamage();
     setabilityThreeDamage();
 }
Пример #2
0
    void Start()
    {
        camera = GameObject.FindGameObjectWithTag("camera").GetComponent <CameraFollowScript>();
        OSES   = camera.GetComponent <onScreenElementsScript>();

        // SETTING DAMAGE OF ARCHERS ABILITIES
        // METHODS TAKEN FROM ARCHER-CHARACTER-SCRIPT
        setFireShotDamage();
        setPiercingDamage();
        setHOADamage();
        //player = GameObject.Find("player");
        currentXP = 0; baseXPMax = 100;
    }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     OSES             = camera.GetComponent <onScreenElementsScript> ();
     archerAnimations = GetComponent <Animator> ();
 }