//private int numberInActiveParners; void Start() { gem = gameManager.gm; gemPm = gmPartnerManager.gmpm; thisInfoBridge = GetComponent<entAiInfoBridge>(); thisEnt = GetComponent<entity>(); thisEntStats = GetComponent<entStats>(); activePartnersNum = findNumberInActivePartners(); for (int i = 0; i < gemPm.pstat.Length; i++) { if (gemPm.pstat[i].partnerName == thisEnt.entName) { partnerListNum = i; } } }
// Use this for initialization void Start () { playerStats = GameObject.FindWithTag("Player").GetComponent<entStats>(); txt = this.gameObject.GetComponent<Text>(); }
void Start () { rends = GetComponentsInChildren<Renderer> (); anims = GetComponentsInChildren<Animator> (); ccont = GetComponent<CharacterController> (); thisEntStats = GetComponent<entStats> (); if (randomizeStats) { acceleration += UnityEngine.Random.Range(-randomizer*2, randomizer*2); //deceleration += UnityEngine.Random.Range(0.01f, randomizer); Speed += UnityEngine.Random.Range(-randomizer*2, randomizer*2); } animSprites = Resources.LoadAll<Sprite>("Characters/" + spriteSheetName); //distToGround = Collider.bounds.extents.y; }
// Use this for initialization void Awake() { thisEnt = this.gameObject.GetComponent<entity>(); thisEntStats = this.gameObject.GetComponent<entStats> (); baseSpeed = thisEnt.Speed; }