Пример #1
0
    void laserFlying()
    {
        bulletlogic bulletEnable = gameObject.GetComponent <bulletlogic>();

        bulletEnable.doDamage = true;
        StartCoroutine(endAfterShot());
    }
Пример #2
0
    void laserEnd()
    {
        bulletlogic bulletEnable = gameObject.GetComponent <bulletlogic>();

        bulletEnable.doDamage = false;
        destroyAfterAni("end");
    }
Пример #3
0
//	void setSpriteDirection(Direction direction){
//
//		if(direction == Direction.left || direction == Direction.right){
//			//Debug.Log ("横向子弹");
//			transform.rotation = Quaternion.identity;
//		}
//		else{
//			transform.rotation = Quaternion.identity;
//			transform.Rotate(0,0,90);
//		}
//	}

    void laserPre()
    {
        bulletlogic bulletEnable = gameObject.GetComponent <bulletlogic>();

        bulletEnable.doDamage = false;
        StartCoroutine(shotAfterPre());
    }