Inheritance: MonoBehaviour
コード例 #1
0
 // Use this for initialization
 void Start()
 {
     Input.multiTouchEnabled = true;
     characterMotorScript = objPlayer.GetComponent<CharacterMotor2>();
     characterJumpScript = objPlayer.GetComponent<CharacterJump2>();
     characterShotScript = objPlayer.GetComponent<CharacterShot>();
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     Motor = GetComponent<CharacterMotor2>();
     Shot = GetComponent<CharacterShot>();
     Life = GetComponent<CharacterHealth>();
     Damage = GetComponent<TakeDamage>();
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     theCharacterMotor = gameObject.GetComponent<CharacterMotor2> ();
     theCharacterJump = gameObject.GetComponent<CharacterJump2> ();
     theCharacterShot = gameObject.GetComponent<CharacterShot> ();
     theCharacterDrill = gameObject.GetComponent<CharacterDrill> ();
 }
コード例 #4
0
    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>();
    }
コード例 #5
0
 private void Awake()
 {
     _playerInput   = new PlayerInput();
     _characterShot = GetComponent <CharacterShot>();
     _characterMove = GetComponent <CharacterMove>();
 }
コード例 #6
0
 // Use this for initialization
 void Start()
 {
     Shot = GetComponent<CharacterShot>();
 }
コード例 #7
0
 void Start()
 {
     theTrackPlayer = gameObject.GetComponent<TrackPlayer>();
     theCharacterShot = gameObject.GetComponent<CharacterShot>();
 }
コード例 #8
0
 void Start()
 {
     characterMotor = gameObject.GetComponent<CharacterMotor2>();
     characterJump = gameObject.GetComponent<CharacterJump2>();
     characterShot = gameObject.GetComponent<CharacterShot>();
 }