コード例 #1
0
ファイル: lasers.cs プロジェクト: tastyegg/Flipside-Prototype
 // Use this for initialization
 void Start()
 {
     lr           = gameObject.GetComponent <LineRenderer>();
     pc           = player.GetComponent <PlayerController>();
     flip         = player.GetComponent <FlipMechanic>();
     lastHitPoint = transform.position;
 }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        flip = GetComponent <FlipMechanic>();

        spawnPosition = transform.position;
        playerRB      = GetComponent <Rigidbody2D>();
        animator      = this.GetComponent <Animator>();
        audioPlayer   = this.GetComponent <AudioSource>();
        facingRight   = true;
        StartCoroutine(Spawn(0.0f));
        axisX      = false;
        axisY      = false;
        dustSystem = GetComponentsInChildren <ParticleSystem>()[3];
    }
コード例 #3
0
 void OnLevelFinishedLoading(Scene scene, LoadSceneMode mode)
 {
     flip = GameObject.FindObjectOfType <FlipMechanic>();
 }
コード例 #4
0
    // Use this for initialization
    void Start()
    {
        flip = GameObject.FindObjectOfType <FlipMechanic>();

        zPos = transform.position.z;
    }