Ejemplo n.º 1
0
    void Start()
    {
        Period = 0;

        MotherShip = GameObject.FindWithTag("MotherShip");
        Jet        = GameObject.Find("JET").GetComponent <Transform>();

        Col = GetComponent <SphereCollider>();

        /*ロックオンシステム*/
        Sys = MotherShip.GetComponent <LockOnSystem>();

        if (Sys.getConcentrationsCount() != 0)
        {
            NonTarget = 0;
            Trans     = Sys.getConcentration();
        }
        else
        {
            NonTarget = 1;
        }

        Audio = GetComponent <AudioSource>();

        if (Dammy == 0)
        {
            Audio.PlayOneShot(Audio.clip);
        }
    }
Ejemplo n.º 2
0
    void Start()
    {
        Img = this.gameObject.GetComponent <Image>();

        Img.color = new Color(0f, 0f, 0f, 0f);//透明

        MotherShip = GameObject.FindWithTag("MotherShip");

        Sys = MotherShip.GetComponent <LockOnSystem>();
    }
 void Awake()
 {
     playerAction    = GetComponent <PlayerAction>();
     playerJump      = GetComponent <PlayerJump>();
     playerMovement  = GetComponent <PlayerMovementV2>();
     playerStats     = GetComponent <PlayerStats>();
     playerAnimation = GetComponent <PlayerAnimation>();
     sprintTrigger   = false;
     cameraManager   = GameObject.FindGameObjectWithTag("GameSetting").GetComponent <CameraManager>();
     lockOnSystem    = GameObject.FindGameObjectWithTag("LockOnArea").GetComponent <LockOnSystem>();
 }
Ejemplo n.º 4
0
    void Start()
    {
        Img = gameObject.GetComponent <Image>();

        //透明
        Img.color = new Color(0f, 0f, 0f, 0f);

        JETrb = GameObject.FindWithTag("Player").GetComponent <Rigidbody>();

        MotherShip = GameObject.FindWithTag("MotherShip");

        /*ロックオンシステム*/
        Sys = MotherShip.GetComponent <LockOnSystem>();
    }