// Use this for initialization void Start() { theTrackPlayer = gameObject.GetComponent<TrackPlayer> (); theEnemyRangedShot = gameObject.GetComponent<EnemyRangedShot> (); theEnemyCharge = gameObject.GetComponent<EnemyCharge> (); theEnemyStomp = gameObject.GetComponent<EnemyStomp> (); }
void Start() { //This will get the Animator anim = gameObject.GetComponent<Animator>(); //These will get the Scripts theCharacterMotorScript = gameObject.GetComponent<CharacterMotor2>(); theEnemyChargeScript = gameObject.GetComponent<EnemyCharge>(); theEnemyShootAIScript = gameObject.GetComponent<EnemyShootAI>(); theEnemyShootingLRScript = gameObject.GetComponent<enemyShootingLR>(); thePaceBetweenWallsScript = gameObject.GetComponent<PaceBetweenWalls>(); theSingleShotEnemyScript = gameObject.GetComponent<singleShotEnemy>(); theTurretScript = gameObject.GetComponent<turret>(); theCharacterShotScript = gameObject.GetComponent<CharacterShot>(); }