// Use this for initialization void Start() { Input.multiTouchEnabled = true; characterMotorScript = objPlayer.GetComponent<CharacterMotor2>(); characterJumpScript = objPlayer.GetComponent<CharacterJump2>(); characterShotScript = objPlayer.GetComponent<CharacterShot>(); }
// Use this for initialization void Start() { Motor = GetComponent<CharacterMotor2>(); Shot = GetComponent<CharacterShot>(); Life = GetComponent<CharacterHealth>(); Damage = GetComponent<TakeDamage>(); }
// Use this for initialization void Start() { theCharacterMotor = gameObject.GetComponent<CharacterMotor2> (); theCharacterJump = gameObject.GetComponent<CharacterJump2> (); theCharacterShot = gameObject.GetComponent<CharacterShot> (); theCharacterDrill = gameObject.GetComponent<CharacterDrill> (); }
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>(); }
private void Awake() { _playerInput = new PlayerInput(); _characterShot = GetComponent <CharacterShot>(); _characterMove = GetComponent <CharacterMove>(); }
// Use this for initialization void Start() { Shot = GetComponent<CharacterShot>(); }
void Start() { theTrackPlayer = gameObject.GetComponent<TrackPlayer>(); theCharacterShot = gameObject.GetComponent<CharacterShot>(); }
void Start() { characterMotor = gameObject.GetComponent<CharacterMotor2>(); characterJump = gameObject.GetComponent<CharacterJump2>(); characterShot = gameObject.GetComponent<CharacterShot>(); }