Beispiel #1
0
 public override void Start()
 {
     this.lRenderer = ((LineRenderer)this.gameObject.GetComponent(typeof(LineRenderer))) as LineRenderer;
     this.aniTime   = 0;
     this.StartCoroutine_Auto(this.ChoseNewAnimationTargetCoroutine());
     this.raycast = this.GetComponent <PerFrameRaycast>();
 }
Beispiel #2
0
    void Awake()
    {
        muzzleFlashFront.SetActive (false);

        raycast = GetComponent<PerFrameRaycast> ();
        if (spawnPoint == null)
            spawnPoint = transform;
    }
Beispiel #3
0
 public override void Awake()
 {
     this.muzzleFlashFront.SetActive(false);
     this.raycast = this.GetComponent <PerFrameRaycast>();
     if (this.spawnPoint == null)
     {
         this.spawnPoint = this.transform;
     }
 }
Beispiel #4
0
    void  Start()
    {
        lRenderer = gameObject.GetComponent <LineRenderer>() as LineRenderer;
        aniTime   = 0.0f;

        // Change some animation values here and there
        ChoseNewAnimationTargetCoroutine();

        raycast = GetComponent <PerFrameRaycast> ();
    }
    void Start()
    {
        lRenderer = gameObject.GetComponent <LineRenderer>();
        aniTime = 0.0f;

        // Change some animation values here and there
        ChoseNewAnimationTargetCoroutine();

        raycast = GetComponent<PerFrameRaycast> ();
    }
    void Awake()
    {
        muzzleFlashFront.SetActive(false);

        raycast = GetComponent <PerFrameRaycast>();
        if (spawnPoint == null)
        {
            spawnPoint = transform;
        }
    }
    void Awake()
    {
        StartCoroutine(CheckForController());
        //	asource = GetComponent<AudioSource>();
        muzzleFlashFront.SetActive (false);

        raycast = GetComponent<PerFrameRaycast> ();
        if (spawnPoint == null)
        spawnPoint = transform;
    }
    void  Awake()
    {
        StartCoroutine(CheckForController());
//	asource = GetComponent<AudioSource>();
        muzzleFlashFront.SetActive(false);

        raycast = GetComponent <PerFrameRaycast> ();
        if (spawnPoint == null)
        {
            spawnPoint = transform;
        }
    }
Beispiel #9
0
    void Awake()
    {
        asource = GetComponent("AudioSource") as AudioSource;
        muzzleFlashFront.SetActive(false);

        raycast = GetComponent <PerFrameRaycast> ();

        if (spawnPoint == null)
        {
            spawnPoint = transform;
        }
    }